#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include<getlogin.h> //登录
#include<gethomework.h> //作业
#include<getqiandao.h> //签到
#include<getinfo.h> //获取信息
#include"hanstorage.h"
#include"answerquestion.h"
#include<submitquestion.h>
int main(int argc, char *argv[])
{
    QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
    QGuiApplication app(argc, argv);
    QQmlApplicationEngine engine;
    qmlRegisterType<getLogin>("Han.Login",1,0,"Login");  //所有标签首字母大写
    qmlRegisterType<getHomeWork>("Han.GetHomeWork",1,0,"GetHomeWork");
    qmlRegisterType<getinfo>("Han.Info",1,0,"Info");
    qmlRegisterType<getQiandao>("Han.QianDao",1,0,"QianDao");
    qmlRegisterType<HanStorage>("Han.Storage",1,0,"Storage");
    qmlRegisterType<answerQuestion>("Han.GetQuestion",1,0,"GetQuestion");
    qmlRegisterType<submitQuestion>("Han.SubmitQuestion",1,0,"SubmitQuestion");
    engine.load(QUrl(QLatin1String("qrc:/main.qml")));

    return app.exec();
}
